package decorator;

public class EggDecorator extends BatterCakeDecorator{
    public EggDecorator(BatterCake batterCake){
        super(batterCake);
    }
    @Override
    protected String getMessage() {
        return super.getMessage()+"一个鸡蛋";
    }

    @Override
    protected int getPrice() {
        return super.getPrice()+1;
    }
}
